GtkPopover: Ensure we unset modality before unparenting the popover
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Dec 2015 19:25:54 +0000 (20:25 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Dec 2015 19:47:25 +0000 (20:47 +0100)
commit3be4971e05e6aeebeddcd7a38ceebc95330b4f03
tree19d78994ff9f468de6100f8fccbe294e8df41e11
parent197e42efd8a0c6adea9fd49f5469687349e887d4
GtkPopover: Ensure we unset modality before unparenting the popover

Otherwise the gtk_grab_remove() calls on widget destruction will happen
on the default window group, which may leave the real window group
of the popover with a dangling pointer if it is not the default one.

This could be seen on the inspector, open a popover in the properties
list and close the window with alt-F4.
gtk/gtkpopover.c